<template>
  <div>
    <h1>Header</h1>
    <div>我是哥哥我开的车是{{ car }}</div>
    <button @click="changeCar">点击换车</button>
  </div>
</template>

<script>
export default {
  name: "Header",
  props: ["car", "changeCar"],
};
</script>

<style>
</style>